home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-05-24 | 2.7 KB | 102 lines | [TEXT/????] |
- // Persistence of Vision Raytracer
- //---------------------------------------------------------------------------
- // This data file is designed to emulate the digitized photographic image
- // of a crystal sphere on a checkerboard that David Buck took, and to
- // verify or refute the correctness of the current refractive functions
- // in PV-Trace beta 0.5. The original image is available on CompuServe
- // (GO COMART), Library 16 by the name of CRYSTA.GIF.
- // Experiment with the index-of-refraction value for the crystal ball.
- //---------------------------------------------------------------------------
-
- #include "colors.dat"
- #include "shapes.dat"
- #include "textures.dat"
-
- view_point
- location <-1.5 17 -18>
- direction <0 0 2.75>
- up <0 1 0>
- right <1.33333 0 0>
- look_at <0 2 0>
- end_view_point
-
- object { main light source , overhead }
- sphere <0 0 0> 0.1 end_sphere
- translate <-5 50 -5>
- texture
- ambient 1
- diffuse 0
- colour White
- end_texture
- colour red 0.85 green 0.85 blue 0.85
- light_source
- end_object
-
- object { fill lighting }
- sphere <0 0 0> 0.1 end_sphere
- translate <-500 500 -500>
- texture
- ambient 1
- diffuse 0
- colour DimGray
- end_texture
- colour DimGray { Low light level }
- light_source
- end_object
-
- object { light (under checkerboard, for background }
- sphere <0 0 0> 0.1 end_sphere
- translate <10 -50 5>
- texture
- ambient 1
- diffuse 0
- colour White
- end_texture
- colour White
- light_source
- end_object
-
- object { The background. Designed to give the shaded quality of the photo}
- quadric QSphere
- scale <10000 500 500>
- rotate <0 60 0>
- end_quadric
- colour CBlue
- texture 0.025
- ambient 0.2
- diffuse 0.75
- color Gray
- end_texture
- end_object
-
- composite
- object { The checkerboard, scaled pretty closely }
- intersection Cube scale <6 0.001 6> end_intersection
- colour Gray
- texture 0.015
- checker color Black color White
- scale <1.15 1 1.15>
- translate <0.30 0.0 -0.30>
- ambient 0.35
- diffuse 0.65
- end_texture
- end_object
-
- object
- sphere <-0.5 2.65 -0.5> 2.65 end_sphere
- colour White
- texture
- color red 1.0 green 1.0 blue 1.0 alpha 0.75
- ambient 0.2
- diffuse 0.0
- reflection 0.12
- refraction 1.0
- ior 2.0 { <-- Experiment with values from 1.4 to 2.8 }
- specular 1.0 roughness 0.001
- end_texture
- end_object
-
- rotate <0 0 -10.5> { Simulate the slight camera tilt in the photo }
- end_composite
-
-